import {createApp} from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import '@fortawesome/fontawesome-free/css/all.min.css'; // 引入 Font Awesome CSS

import ECharts from 'vue-echarts'
import 'echarts'
import {use} from "echarts/core"

//路由
import router from './router/index.js'

// 导入 Pinia
import { createPinia } from 'pinia'
const pinia = createPinia()

const app = createApp(App);
app.component('v-chart', ECharts);
app.use(ElementPlus);
app.use(router);
app.use(pinia); // 使用 Pinia
app.mount('#app');